const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  // 因为user要自己写,所以user的没有用了
  // 页面会出现早不到avatar的报错,因为主页有用到
  // token: state => state.user.token,
  // avatar: state => state.user.avatar,
  // name: state => state.user.name

  //
  avatar: state => state.user.userinfo.staffPhoto,
  name: state => state.user.userinfo.username

}
export default getters
